# from pydantic import BaseModel, Field
#
#
# class ProducerDto(BaseModel):
#     id: int = Field(default=0, title="id", description="id")
#     name: str = Field(default=None, title="名称", description="名称")
#     nation_id: int = Field(default=0, title="国家id", description="国家id")
#     nation_name: str = Field(default=None, title="国家名称", description="国家名称")
#
#     class Config:
#         from_attributes = True
#         orm_mode = True
#
# class CarDto(BaseModel):
#     id: int = Field(default=0, title="id", description="id")
#     name: str = Field(default=None, title="名称", description="名称")
#     producerId: int = Field(default=0, title="生厂商id", description="生厂商id")
#     userId: int = Field(default=None, title="用户id", description="用户id")
#
#     producerName: str = None
#     nationName: str = None
#
#     class Config:
#         from_attributes = True
#         orm_mode = True
#
#
